
package DTO;

/**
 * This class acts as data transfer abstraction for administrator object attributes. It encapsulates address attributes.
 * This object is transferred back and forth amongst various layers.
 * @author tejinder
 * @see DTO
 */
public class Admin {

    private int id;
    private String passcode;
    private String firstName;
    private String lastName;

    /**
     * default constructor
     */
    public Admin() {
        id = 0;
        passcode = "";
        firstName = "";
        lastName = "";
    }

    /**
     * parameterized constructor
     * @param id an integer id
     * @param passcode a string password
     * @param firstName a string first name
     * @param lastName a string last name 
     */
    public Admin(int id, String passcode, String firstName, String lastName) {
        this.id = id;
        this.passcode = passcode;
        this.firstName = firstName;
        this.lastName = lastName;
    }

    /**
     * gets first name
     * @return string
     */
    public String getFirstName() {
        return firstName;
    }

    /**
     * gets last name
     * @return string
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * gets administrator id
     * @return an integer id
     */
    public int getId() {
        return id;
    }

    /**
     * sets administrator id
     * @param integer id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * gets the password 
     * @return a string
     */
    public String getPasscode() {
        return passcode;
    }

    /**
     * sets the password
     * @param a string 
     */
    public void setPasscode(String passcode) {
        this.passcode = passcode;
    }

    /**
     * sets first name
     * @param string
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    /**
     * sets last name
     * @param a string 
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
}
